import {
	request
} from '@/utils/request.js'

const baseUrl = 'https://yzsapi.qdxnhb.com/api' //正式地址
// 授权支付宝token
export const getLoginRegister = (params) => {
	const url = `${baseUrl}/user/register`
	return request(url, 'post', params, 'form')
}
// 订单列表
export const getCheckList = (params) => {
	const url = `${baseUrl}/orders/check_list`
	return request(url, 'post', params, 'form')
}
// 提交审核==点击确认审核成功
export const getCheckOrder = (params) => {
	const url = `${baseUrl}/orders/check_order`
	return request(url, 'post', params, 'form')
}
// 取消订单===点击取消按钮
export const getCheckOrderOut = (params) => {
	const url = `${baseUrl}/orders/check_order_out`
	return request(url, 'post', params, 'form')
}
// 入驻
export const getUserAdd = (params) => {
	const url = `${baseUrl}/user/add_store`
	return request(url, 'post', params, 'form')
}
// 入驻查看 
export const getAddDateil = (params) => {
	const url = `${baseUrl}/user/add_dateil`
	return request(url, 'post', params, 'form')
}
// 入驻编辑
export const getAddEdit = (params) => {
	const url = `${baseUrl}/user/add_edit`
	return request(url, 'post', params, 'form')
}
// 提交运力
export const getOrderStoreCreate = (params) => {
	const url = `${baseUrl}/order/store_create`
	return request(url, 'post', params, 'form')
}
// 个人信息
export const getUserIndex = (params) => {
	const url = `${baseUrl}/user/index`
	return request(url, 'post', params, 'form')
}
// 运力列表
export const getOrderList = (params) => {
	const url = `${baseUrl}/order/store_order_list`
	return request(url, 'post', params, 'form')
}
